<?php
	 $select_users='SELECT * FROM users WHERE type!=3 && type!=2';
	 $results_users=mysql_query($select_users);
	 ?>
	<form method='post' action='includes/first_post.php'>
		<table class='userBox' style='overflow: auto;'>
		<tr style='background-color: #b7b6b6; height: 40px;'>
			<td style="text-align: center; font-weight: bold;">Номер</td>
			<td style="text-align: center; font-weight: bold;">Потребителско име</td>
			<td style="text-align: center; font-weight: bold;">Истинско име</td>
			<td style="text-align: center; font-weight: bold;">Избор</td>
		</tr>
	 <?php
	 $i=1;
	while($row_users=mysql_fetch_assoc($results_users)){
	   $id=$row_users['id'];
	   $username=$row_users['username'];
	   $name=$row_users['first_name'];
	   $nnam = $username."".$id;
?>
	<tr style='height: 30px; background-color: #ede7e7;'><td style="text-align: center;">
	<?php
	echo $i;
	?>
	</td>
	<td style="text-indent: 20px;">
	  <?php echo $username;?>
	  </td>
	  <td style="text-indent: 20px;">
	  <?php echo $name;?>
	  </td>
	  <td style='text-align: center;'>
	  <input type='checkbox' value="<?php echo $username."".$id; ?>" name="<?php echo $username; ?>" style='background-color: #ede7e7;' /> 
	  </td>
	  
	  </tr>
	  <?php
	  $i++;
	 }
	 
?>
<tr style='background-color: #ede7e7; height: 30px;'><td></td><td></td><td></td><td></td></tr>
<tr style='background-color: #b7b6b6; height: 40px;'><td></td><td style="text-align: center; font-weight: bold;">Раздел:</td><td style="text-align: center; font-weight: bold;">Тема:</td><td></td></tr>
<tr style='height: 30px; background-color: #ede7e7;'><td></td>
<td style="text-align: center;">

<?php
echo $row_u['teacher_to'];
?>

</td>
	<td style="text-align: center;">
		<input type='text' name='tutorial'  value='Тема на групата' onblur="if(this.value == '')this.value='Тема на групата';"
        onfocus="if(this.value=='Тема на групата') this.value=''; " onchange="CheckUsername(this.value);" />
	</td>
	<td style='text-align: center;'>
		<input type='submit' name='submit' value='Готово'/>
	</td>
</tr>
</table>
</form>